/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const marketRouter = {
  path: '/market',
  component: Layout,
  name: '运营',
  meta: {
    title: '运营',
    subtitle: '运营',
    icon: 'marketing'
  },
  children: [
    // 模拟三级路由
    {
      path: '',
      component: Layout,
      name: '优惠券',
      meta: { title: '优惠券', subtitle: '优惠券', icon: 'menu_market'},
      childrens: [
        {
          path: '/currency/list',
          meta: { title: '通用券' ,subtitle:'通用',icon: 'menu_coupon',permissions:['coupon.query']},
        },
        {
          path: '/brandvolume/list',
          meta: { title: '品牌券' ,subtitle:'品牌',icon: 'menu_coupon',permissions:['coupon1.query']},
        },
        {
          path: '/classifiedvolume/list',
          meta: { title: '分类券' ,subtitle:'分类',icon: 'menu_coupon',permissions:['coupon3.query']},
        },
        {
          path: '/commodity/list',
          meta: { title: '商品券' ,subtitle:'商品',icon: 'menu_coupon',permissions:['coupon4.query']},
        },
        {
          path: '/exchange/list',
          meta: { title: '提货券' ,subtitle:'提货',icon: 'menu_coupon',permissions:['coupon5.query']},
        },
      ]
    },
    {
      path: '',
      component: Layout,
      name: '商品活动',
      meta: { title: '商品活动', subtitle: '商品活动', icon: 'menu_market'},
      childrens: [
        {
          path: '/newpeople/list',
          meta: { title: '新人价' ,subtitle:'秒杀',icon: 'menu_promotion', permissions:['promotion10.query']}
        },
        {
          path: '/buyandive/list',
          meta: { title: '买送' ,subtitle:'活动',icon: 'menu_promotion', permissions:['promotion7.query']}
        },
        {
          path: '/seckill/list',
          meta: { title: '限时折扣' ,subtitle:'折扣',icon: 'menu_promotion', permissions:['promotion8.query']}
        },
        {
          path: '/buyzeng/list',
          meta: { title: '买赠' ,subtitle:'秒杀',icon: 'menu_promotion', permissions:['promotion10.query']}
        },
        {
          path: '/thesecond/list',
          meta: { title: '第二件半价' ,subtitle:'秒杀',icon: 'menu_promotion', permissions:['promotion9.query']}
        },
      ]
    },
    {
      path: '',
      component: Layout,
      name: '全场活动',
      meta: { title: '全场活动', subtitle: '全场活动', icon: 'menu_market'},
      childrens: [
         {
          path: '/fulleduction/list',
          meta: { title: '满减' ,subtitle:'满减',icon: 'menu_promotion', permissions: ['promotion3.query']}
        },
         {
          path: '/fulldiscount/list',
          meta: { title: '满折' ,subtitle:'满折',icon: 'menu_promotion', permissions: ['promotion4.query']}
        },
         {
          path: '/fullgift/list',
          meta: { title: '满赠' ,subtitle:'满赠',icon: 'menu_promotion', permissions: ['promotion5.query']}
        },
        {
        path: '/springscreen/list',
        meta: { title: '弹屏' ,subtitle:'包邮',icon: 'menu_promotion', permissions: ['promotion0.query']}
        },
        {
        path: '/scancode/list',
        meta: { title: '扫一扫' ,subtitle:'扫码',icon: 'menu_promotion', permissions: ['promotion2.query']}
        },
        {
        path: '/freeshipping/list',
        meta: { title: '满包邮' ,subtitle:'包邮',icon: 'menu_promotion', permissions: ['promotion6.query']}
        },

    ]
    },
    {
      path: '',
      component: Layout,
      name: '互动营销',
      meta: { title: '互动营销', subtitle: '互动营销', icon: 'menu_market'},
      childrens: [
        {
          path: '/groupBuy/list',
          meta: { title: '红包团购' ,subtitle:'团购',icon: 'menu_promotion', permissions: ['groupBuy.query']}
        },
        // {
        //   path: '/sevengroupBuy/list',
        //   meta: { title: '七七团购' ,subtitle:'团购',icon: 'menu_promotion', permissions: ['groupBuy.query']}
        // },
        // {
        //   path: '/spike/list',
        //   meta: { title: '限时秒杀' ,subtitle:'秒杀',icon: 'menu_promotion', permissions: ['groupBuy.query']}
        // },
        {
          path: '/multiPersonGroup/list',
          meta: { title: '拉新拼团' ,subtitle:'团购',icon: 'menu_promotion', permissions: ['groupBuy.query']}
        },
        {
          path: '/bargainBuy/list',
          meta: { title: '砍价活动' ,subtitle:'砍价',icon: 'menu_promotion', permissions: ['bargainBuy.query']}
        },
        {
          path: '/signin/list',
          meta: { title: '签到活动' ,subtitle:'签到',icon: 'menu_promotion', permissions: ['promotion6.query']}
        },
        // {
        //   path: '/shootingGroup/list',
        //   meta: { title: '抢拍活动' ,subtitle:'团购',icon: 'menu_promotion', permissions: ['promotion6.query']}
        // },
      ]
    },
    {
      path: '/currency/list',
      component: () => import('@/views/coupon/currency/list'),
      name: 'currency-list',
      meta: { title: '通用券' ,subtitle:'优惠',icon: 'menu_coupon',permissions:['coupon.query']},
      hidden: true
    },
    {
      path: '/currency/add',
      component: () => import('@/views/coupon/currency/add'),
      name: 'currency-add',
      meta: { title: '新增通用券' ,icon: 'menu_coupon'},
      hidden: true
    },
    {
      path: '/currency/edit',
      component: () => import('@/views/coupon/currency/edit'),
      name: 'currency-edit',
      meta: { title: '修改通用券' ,icon: 'menu_coupon'},
      hidden: true
    },
    {
      path: '/brandvolume/list',
      component: () => import('@/views/coupon/brandvolume/list'),
      name: 'brandvolume-list',
      meta: { title: '品牌券' ,subtitle:'优惠',icon: 'menu_coupon',permissions:['coupon1.query']},
      hidden: true
    },
    {
      path: '/brandvolume/add',
      component: () => import('@/views/coupon/brandvolume/add'),
      name: 'brandvolume-add',
      meta: { title: '新增品牌券' ,icon: 'menu_coupon'},
      hidden: true
    },
    {
      path: '/brandvolume/edit',
      component: () => import('@/views/coupon/brandvolume/edit'),
      name: 'brandvolume-edit',
      meta: { title: '修改品牌券' ,icon: 'menu_coupon'},
      hidden: true
    },
    {
      path: '/classifiedvolume/list',
      component: () => import('@/views/coupon/classifiedvolume/list'),
      name: 'classifiedvolume-list',
      meta: { title: '分类券' ,subtitle:'优惠',icon: 'menu_coupon',permissions:['coupon3.query']},
      hidden: true
    },
    {
      path: '/classifiedvolume/add',
      component: () => import('@/views/coupon/classifiedvolume/add'),
      name: 'classifiedvolume-add',
      meta: { title: '新增分类券' ,icon: 'menu_coupon'},
      hidden: true
    },
    {
      path: '/classifiedvolume/edit',
      component: () => import('@/views/coupon/classifiedvolume/edit'),
      name: 'classifiedvolume-edit',
      meta: { title: '修改分类券' ,icon: 'menu_coupon'},
      hidden: true
    },
    {
      path: '/commodity/list',
      component: () => import('@/views/coupon/commodity/list'),
      name: 'commodity-list',
      meta: { title: '商品券' ,subtitle:'优惠',icon: 'menu_coupon',permissions:['coupon4.query']},
      hidden: true
    },
    {
      path: '/commodity/add',
      component: () => import('@/views/coupon/commodity/add'),
      name: 'commodity-add',
      meta: { title: '新增商品券' ,icon: 'menu_coupon'},
      hidden: true
    },
    {
      path: '/commodity/edit',
      component: () => import('@/views/coupon/commodity/edit'),
      name: 'commodity-edit',
      meta: { title: '修改商品券' ,icon: 'menu_coupon'},
      hidden: true
    },
    {
      path: '/exchange/list',
      component: () => import('@/views/coupon/exchange/list'),
      name: 'exchange-list',
      meta: { title: '提货券' ,subtitle:'优惠',icon: 'menu_coupon',permissions:['coupon5.query']},
      hidden: true
    },
    {
      path: '/exchange/add',
      component: () => import('@/views/coupon/exchange/add'),
      name: 'exchange-add',
      meta: { title: '新增提货券' ,icon: 'menu_coupon'},
      hidden: true
    },
    {
      path: '/exchange/edit',
      component: () => import('@/views/coupon/exchange/edit'),
      name: 'exchange-edit',
      meta: { title: '修改提货券' ,icon: 'menu_coupon'},
      hidden: true
    },
     {
      path: '/bargainBuy/list',
      component: () => import('@/views/bargainBuy/list'),
      name: 'bargainBuy-list',
      meta: { title: '砍价' ,subtitle:'砍价',icon: 'menu_promotion', permissions: ['bargainBuy.query']},
      hidden: true
    },
    {
      path: '/bargainBuy/add',
      component: () => import('@/views/bargainBuy/add'),
      name: 'bargainBuy-add',
      meta: { title: '新增砍价' ,icon: 'menu_promotion'},
      hidden: true
    },
    {
      path: '/bargainBuy/edit',
      component: () => import('@/views/bargainBuy/edit'),
      name: 'bargainBuy-edit',
      meta: { title: '修改砍价' ,icon: 'menu_promotion'},
      hidden: true
    },
    {
      path: '/bargainBuy/view',
      component: () => import('@/views/bargainBuy/view'),
      name: 'bargainBuy-view',
      meta: { title: '砍价详情' ,icon: 'menu_promotion'},
      hidden: true
    },
   {
      path: '/groupBuy/list',
      component: () => import('@/views/groupBuy/list'),
      name: 'groupBuy-list',
      meta: { title: '红包团购' ,subtitle:'红包团购',icon: 'menu_promotion', permissions: ['groupBuy.query']},
      hidden: true
    },
    {
      path: '/groupBuy/add',
      component: () => import('@/views/groupBuy/add'),
      name: 'groupBuy-add',
      meta: { title: '新增红包团购' ,icon: 'menu_promotion'},
      hidden: true
    },
    {
      path: '/groupBuy/edit',
      component: () => import('@/views/groupBuy/edit'),
      name: 'groupBuy-edit',
      meta: { title: '修改红包团购' ,icon: 'menu_promotion'},
      hidden: true
    },
    {
      path: '/groupBuy/view',
      component: () => import('@/views/groupBuy/view'),
      name: 'groupBuy-view',
      meta: { title: '红包团购详情' ,icon: 'menu_promotion'},
      hidden: true
   },

   {
    path: '/spike/list',
    component: () => import('@/views/spike/list'),
    name: 'spike-list',
    meta: { title: '限时秒杀' ,subtitle:'秒杀',icon: 'menu_promotion', permissions: ['groupBuy.query']},
    hidden: true
  },
  {
    path: '/spike/add',
    component: () => import('@/views/spike/add'),
    name: 'spike-add',
    meta: { title: '新增秒杀' ,icon: 'menu_promotion'},
    hidden: true
  },
  {
    path: '/spike/edit',
    component: () => import('@/views/spike/edit'),
    name: 'spike-edit',
    meta: { title: '修改秒杀' ,icon: 'menu_promotion'},
    hidden: true
  },
    {
      path: '/shootingGroup/list',
      component: () => import('@/views/shootingGroup/list'),
      name: 'shootingGroup-list',
      meta: { title: '抢拍活动' ,subtitle:'团购',icon: 'menu_promotion', permissions: ['groupBuy.query']},
      hidden: true
    },
    {
      path: '/shootingGroup/add',
      component: () => import('@/views/shootingGroup/add'),
      name: 'shootingGroup-add',
      meta: { title: '新增抢拍活动' ,icon: 'menu_promotion'},
      hidden: true
    },
    {
      path: '/shootingGroup/edit',
      component: () => import('@/views/shootingGroup/edit'),
      name: 'shootingGroup-edit',
      meta: { title: '修改抢拍活动' ,icon: 'menu_promotion'},
      hidden: true
    },
    {
      path: '/shootingGroup/view',
      component: () => import('@/views/shootingGroup/view'),
      name: 'shootingGroup-view',
      meta: { title: '抢拍活动详情' ,icon: 'menu_promotion'},
      hidden: true
    },






    {
      path: '/multiPersonGroup/list',
      component: () => import('@/views/multiPersonGroup/list'),
      name: 'multiPersonGroup-list',
      meta: { title: '拉新拼团' ,subtitle:'团购',icon: 'menu_promotion', permissions: ['groupBuy.query']},
      hidden: true
    },
    {
      path: '/multiPersonGroup/add',
      component: () => import('@/views/multiPersonGroup/add'),
      name: 'multiPersonGroup-add',
      meta: { title: '新增拉新拼团' ,icon: 'menu_promotion'},
      hidden: true
    },
    {
      path: '/multiPersonGroup/edit',
      component: () => import('@/views/multiPersonGroup/edit'),
      name: 'multiPersonGroup-edit',
      meta: { title: '修改拉新拼团' ,icon: 'menu_promotion'},
      hidden: true
    },
    {
      path: '/multiPersonGroup/view',
      component: () => import('@/views/multiPersonGroup/view'),
      name: 'multiPersonGroup-view',
      meta: { title: '拉新拼团详情' ,icon: 'menu_promotion'},
      hidden: true
    },
    {
      path: '/fulleduction/list',
      component: () => import('@/views/promotion/fulleduction/list'),
      name: 'fulleduction-list',
      meta: { title: '满减' ,subtitle:'活动',icon: 'menu_promotion',permissions:['promotion4.query']},
      hidden: true
    },
    {
      path: '/fulleduction/add',
      component: () => import('@/views/promotion/fulleduction/add'),
      name: 'fulleduction-add',
      meta: { title: '新增满减' ,icon: 'menu_promotion'},
      hidden: true
    },
    {
      path: '/fulleduction/edit',
      component: () => import('@/views/promotion/fulleduction/edit'),
      name: '/fulleduction-edit',
      meta: { title: '修改满减' ,icon: 'menu_promotion'},
      hidden: true
    },
    {
      path: '/fulldiscount/list',
      component: () => import('@/views/promotion/fulldiscount/list'),
      name: 'fulldiscount-list',
      meta: { title: '满折' ,subtitle:'活动',icon: 'menu_promotion',permissions:['promotion4.query']},
      hidden: true
    },
    {
      path: '/fulldiscount/add',
      component: () => import('@/views/promotion/fulldiscount/add'),
      name: 'fulldiscount-add',
      meta: { title: '新增满折' ,icon: 'menu_promotion'},
      hidden: true
    },
    {
      path: '/fulldiscount/edit',
      component: () => import('@/views/promotion/fulldiscount/edit'),
      name: '/fulldiscount-edit',
      meta: { title: '修改满折' ,icon: 'menu_promotion'},
      hidden: true
    },
    {
      path: '/fullgift/list',
      component: () => import('@/views/promotion/fullgift/list'),
      name: 'fullgift-list',
      meta: { title: '满赠' ,subtitle:'活动',icon: 'menu_promotion',permissions:['promotion5.query']},
      hidden: true
    },
    {
      path: '/fullgift/add',
      component: () => import('@/views/promotion/fullgift/add'),
      name: 'fullgift-add',
      meta: { title: '新增满赠' ,icon: 'menu_promotion'},
      hidden: true
    },
    {
      path: '/fullgift/edit',
      component: () => import('@/views/promotion/fullgift/edit'),
      name: '/fullgift-edit',
      meta: { title: '修改满赠' ,icon: 'menu_promotion'},
      hidden: true
    },
    {
      path: '/freeshipping/list',
      component: () => import('@/views/promotion/freeshipping/list'),
      name: 'freeshipping-list',
      meta: { title: '满包邮' ,subtitle:'活动',icon: 'menu_promotion',permissions:['promotion6.query']},
      hidden: true
    },
    {
      path: '/signin/list',
      component: () => import('@/views/promotion/signin/list'),
      name: 'signin-list',
      meta: { title: '签到' ,subtitle:'活动',icon: 'menu_promotion',permissions:['promotion6.query']},
      hidden: true
    },
    {
      path: '/signin/add',
      component: () => import('@/views/promotion/signin/add'),
      name: 'signin-add',
      meta: { title: '签到新增' ,subtitle:'活动',icon: 'menu_promotion',permissions:['promotion6.query']},
      hidden: true
    },
    {
      path: '/signin/record',
      component: () => import('@/views/promotion/signin/record'),
      name: 'signin-record',
      meta: { title: '签到记录' ,subtitle:'活动',icon: 'menu_promotion',permissions:['promotion6.query']},
      hidden: true
    },
    {
      path: '/signin/edit',
      component: () => import('@/views/promotion/signin/edit'),
      name: 'signin-edit',
      meta: { title: '签到修改' ,subtitle:'活动',icon: 'menu_promotion',permissions:['promotion6.query']},
      hidden: true
    },
    {
      path: '/freeshipping/add',
      component: () => import('@/views/promotion/freeshipping/add'),
      name: 'freeshipping-add',
      meta: { title: '新增满包邮' ,icon: 'menu_promotion'},
      hidden: true
    },
    {
      path: '/freeshipping/edit',
      component: () => import('@/views/promotion/freeshipping/edit'),
      name: '/freeshipping-edit',
      meta: { title: '修改满包邮' ,icon: 'menu_promotion'},
      hidden: true
    },
    {
      path: '/springscreen/list',
      component: () => import('@/views/promotion/springscreen/list'),
      name: 'springscreen-list',
      meta: { title: '弹屏' ,subtitle:'活动',icon: 'menu_promotion',permissions:['promotion0.query']},
      hidden: true
    },
    {
      path: '/springscreen/add',
      component: () => import('@/views/promotion/springscreen/add'),
      name: 'springscreen-add',
      meta: { title: '新增弹屏' ,icon: 'menu_promotion'},
      hidden: true
    },
    {
      path: '/springscreen/edit',
      component: () => import('@/views/promotion/springscreen/edit'),
      name: '/springscreen-edit',
      meta: { title: '修改满弹屏' ,icon: 'menu_promotion'},
      hidden: true
    },
    {
      path: '/scancode/list',
      component: () => import('@/views/promotion/scancode/list'),
      name: 'scancode-list',
      meta: { title: '扫码' ,subtitle:'活动',icon: 'menu_promotion',permissions:['promotion2.query']},
      hidden: true
    },
    {
      path: '/scancode/add',
      component: () => import('@/views/promotion/scancode/add'),
      name: 'scancode-add',
      meta: { title: '新增扫码' ,icon: 'menu_promotion'},
      hidden: true
    },
    {
      path: '/scancode/edit',
      component: () => import('@/views/promotion/scancode/edit'),
      name: '/scancode-edit',
      meta: { title: '修改扫码' ,icon: 'menu_promotion'},
      hidden: true
    },

    {
      path: '/buyandive/list',
      component: () => import('@/views/productPromotion/buyandive/list'),
      name: 'buyandive-list',
      meta: { title: '买送' ,subtitle:'买送',icon: 'menu_promotion', permissions: ['promotion7.query']},
      hidden: true
    },
    {
      path: '/buyandive/add',
      component: () => import('@/views/productPromotion/buyandive/add'),
      name: 'buyandive-add',
      meta: { title: '新增买送' ,icon: 'menu_promotion'},
      hidden: true
    },
    {
      path: '/buyandive/edit',
      component: () => import('@/views/productPromotion/buyandive/edit'),
      name: 'buyandive-edit',
      meta: { title: '修改买送' ,icon: 'menu_promotion'},
      hidden: true
    },
    {
      path: '/seckill/list',
      component: () => import('@/views/productPromotion/seckill/list'),
      name: 'seckill-list',
      meta: { title: '折扣' ,subtitle:'折扣',icon: 'menu_promotion', permissions: ['promotion8.query']},
      hidden: true
    },
    {
      path: '/seckill/add',
      component: () => import('@/views/productPromotion/seckill/add'),
      name: 'seckill-add',
      meta: { title: '新增折扣' ,icon: 'menu_promotion'},
      hidden: true
    },
    {
      path: '/seckill/edit',
      component: () => import('@/views/productPromotion/seckill/edit'),
      name: 'seckill-edit',
      meta: { title: '修改折扣' ,icon: 'menu_promotion'},
      hidden: true
    },
    {
      path: '/thesecond/list',
      component: () => import('@/views/productPromotion/thesecond/list'),
      name: 'thesecond-list',
      meta: { title: '第二件半价' ,subtitle:'半价',icon: 'menu_promotion', permissions: ['promotion9.query']},
      hidden: true
    },
    {
      path: '/thesecond/add',
      component: () => import('@/views/productPromotion/thesecond/add'),
      name: 'thesecond-add',
      meta: { title: '新增第二件半价' ,icon: 'menu_promotion'},
      hidden: true
    },
    {
      path: '/thesecond/edit',
      component: () => import('@/views/productPromotion/thesecond/edit'),
      name: 'thesecond-edit',
      meta: { title: '修改第二件半价' ,icon: 'menu_promotion'},
      hidden: true
    },
    {
      path: '/newpeople/list',
      component: () => import('@/views/productPromotion/newpeople/list'),
      name: 'newpeople-list',
      meta: { title: '新人价' ,subtitle:'半价',icon: 'menu_promotion', permissions: ['promotion10.query']},
      hidden: true
    },
    {
      path: '/newpeople/add',
      component: () => import('@/views/productPromotion/newpeople/add'),
      name: 'newpeople-add',
      meta: { title: '新增新人价' ,icon: 'menu_promotion'},
      hidden: true
    },
    {
      path: '/newpeople/edit',
      component: () => import('@/views/productPromotion/newpeople/edit'),
      name: 'newpeople-edit',
      meta: { title: '修改新人价' ,icon: 'menu_promotion'},
      hidden: true
    },

    {
      path: '/buyzeng/list',
      component: () => import('@/views/productPromotion/buyzeng/list'),
      name: 'buyzeng-list',
      meta: { title: '买赠' ,subtitle:'买赠',icon: 'menu_promotion', permissions: ['promotion11.query']},
      hidden: true
    },
    {
      path: '/buyzeng/add',
      component: () => import('@/views/productPromotion/buyzeng/add'),
      name: 'buyzeng-add',
      meta: { title: '新增买赠' ,icon: 'menu_promotion'},
      hidden: true
    },
    {
      path: '/buyzeng/edit',
      component: () => import('@/views/productPromotion/buyzeng/edit'),
      name: 'buyzeng-edit',
      meta: { title: '修改买赠' ,icon: 'menu_promotion'},
      hidden: true
    },


  ]
}
export default marketRouter
